package cn.shrek.service.impl;

import cn.shrek.mapper.RoleMapper;
import cn.shrek.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;
    @Override
    public List<String> queryRolesByUserId(Integer user_id) {
        return roleMapper.queryRolesByUserId(user_id);
    }
}
